import instance from "@/request/request";
export const loginAPI = (params: ILoginParams): RES<ILoginData> =>
    instance.post("/admin/login", params);
// 获取后台用户信息
export const userInfoApi = (): RES<IUserInfoData> => instance.get("/admin/info")
// 登出
export const logoutApi = (): RES<null> => instance.post("/admin/logout")